package com.example.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.user.entity.User;
import com.example.user.entity.UserLogin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface UserMapper extends BaseMapper<User> {


     List getUserPage();

     int addUser(User user);

     List<User> getUserByName(@Param("userName") String userName);

     int editUserInfo(@Param("user") User user);

    UserLogin getUserLoingInfo(@Param("user") UserLogin user);

    int insertUserRegister(@Param("user") UserLogin user);

    User selectUserById(@Param("id") Integer id);
}
